package com.ftg.learn.day10;

/**
 * @author kangjx
 * @version 1.0
 * @date 2023/8/4 上午11:10
 */
public class Play {

    public static void main(String[] args) {

        DemoSingleton d = DemoSingleton.getInstance();
        DemoSingleton d1 = DemoSingleton.getInstance();

        System.out.println(d == d1);

        SuperMan superMan = SuperMan.getInstance();
        superMan.fly();
        superMan.swim();

    }


}
